package com.artPreter.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.artPreter.pojo.Picture;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 图片表 Mapper 接口
 * </p>
 *
 * @author jarvis
 * @since 2024-11-21
 */
@Mapper
public interface PictureMapper extends BaseMapper<Picture> {

    @Select("SELECT s.* FROM jv_picture s ${ew.customSqlSegment} ")
    IPage<Picture> getPageNoRelative(IPage<Picture> pictureIPage, @Param(Constants.WRAPPER) Wrapper wrapper);
}
